package cn.xluobo.business.wechat.miniapp.course.domain.resp;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ：KingLong
 * @date ：Created in 2020/10/26 14:43
 */
@Data
@Builder
public class RespClaTimeDetail {

    // 排课编号
    private Long courseTimeId;

    private Long claId;

    private Long teacherId;

    private String claDate;

    private String roomName;

    private String startTime;

    private String endTime;

    private BigDecimal payHour;

    private String deptName;

    private String claName;

    private String courseName;

    private String teacherName;

    // 是否已上课
    private Boolean hadAttend;

    private List<RespClaStudentInfo> studentList;

    public String getSubTitle() {
        return courseName + " · " +
                teacherName + " · " +
                claDate + " " +
                startTime.substring(0, 5) + "-" + endTime.substring(0, 5);
    }
}
